using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
    [DataContract]
    [Table("hrm_mp_classes")]
    public class MpClass
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DataMember, Display(Name = "ClassId", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("class_seq")]
        public int ClassId { get; set; }

        [DataMember, Display(Name = "ClassNo", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("class_no")]
        public string ClassNo { get; set; }

        [DataMember, Display(Name = "ClassName", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("class_name")]
        public string ClassName { get; set; }

        [DataMember, Display(Name = "ClassNameShort", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("class_name_short")]
        public string ClassNameShort { get; set; }

        [DataMember, Display(Name = "ClassEng", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("class_eng")]
        public string ClassEng { get; set; }

        [DataMember, Display(Name = "ClassEngShort", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("class_eng_short")]
        public string ClassEngShort { get; set; }

        [ForeignKey("HrmMpPositionTypes")]
        [DataMember, Display(Name = "PosTypeId", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("pos_type_seq")]
        public Nullable<int> PosTypeId { get; set; }

        [ForeignKey("HrmPsEmployeeTypes")]
        [DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("emp_type_seq")]
        public Nullable<int> EmpTypeId { get; set; }

        [DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("record_status")]
        public string RecordStatus { get; set; }

        [DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("created_by")]
        public Nullable<int> CreatedBy { get; set; }

        [DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("created_when")]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

        [DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("updated_by")]
        public Nullable<int> UpdatedBy { get; set; }

        [DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("updated_when")]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        [DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.MpClassesResource))]
        [Column("remarks")]
        public string Remarks { get; set; }

        [DataMember, Display(Name = "HrmMpPositionTypes", ResourceType = typeof(Resources.MpClassesResource))]
        public virtual MpPositionType HrmMpPositionTypes { get; set; }

        [DataMember, Display(Name = "HrmPsEmployeeTypes", ResourceType = typeof(Resources.MpClassesResource))]
        public virtual MasEmployeeType HrmPsEmployeeTypes { get; set; }

    }
}
